/*
# Copyright (c) 2020-2030 iSoftStone Information Technology (Group) Co.,Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
*/
#include <stdio.h>
#include "oled.h"
#include "gui.h"
#include "test.h"
void test_led_screen(void)
{	
    //delay_init();	    	       //延时函数初始化	  
    //NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);	 //设置NVIC中断分组2:2位抢占优先级，2位响应优先级	
    printf("before oled clear \r\n");
    OLED_Init();			         //初始化OLED  
    OLED_Clear(0);             //清屏（全黑）
    printf("after oled clear \r\n");
    while(1) 
    {	
        
        printf("before main page clear \r\n");
        /*
        TEST_BMP();              //BMP单色图片显示测试
        TEST_LINE();
        TEST_Chinese();          //中文显示测试
        printf("test dbg %s,%s,%d \r\n",__FILE__,__func__,__LINE__);
        OLED_Clear(0); 
        */
        TEST_Menu2();            //菜单2显示测试
        printf("test dbg %s,%s,%d \r\n",__FILE__,__func__,__LINE__);
        OLED_Clear(0); 

        printf("main loop ......\r\n");
    }
}

void display_hr(void)
{	
    //delay_init();	    	       //延时函数初始化	  
    //NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);	 //设置NVIC中断分组2:2位抢占优先级，2位响应优先级	
    printf("before oled clear \r\n");
    OLED_Init();			         //初始化OLED  
    OLED_Clear(0);             //清屏（全黑）
    printf("after oled clear \r\n");
    while(1) 
    {	
        
        //printf("before main page clear \r\n");
        TEST_CURVE();            //HR曲线显示
        //printf("test dbg %s,%s,%d \r\n",__FILE__,__func__,__LINE__);
        OLED_Clear(0); 

        //printf("main loop ......\r\n");
    }
}
